package com.abo.yaas.domain;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

public enum AuctionState implements Serializable {
    AS_ACTIVE("Active"), AS_BANNED("Banned"), AS_RESOLVED("Resolved"), AS_UNKNOWN(
            "Unknown");

    public static List<AuctionState> asList() {
        return Arrays.asList(AuctionState.values());
    }

    private String name;

    AuctionState(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
}
